#include "Stack.h"

void StackTest(void)
{
	ST st;

	STInit(&st);

	STPush(&st, 1);
	STPush(&st, 2);
	STPush(&st, 3);
	STPush(&st, 4);

	printf("%d\n", STTop(&st));
	printf("%d\n", STSize(&st));

	while (!STEmpty(&st))
	{
		printf("%d ", STTop(&st));
		STPop(&st);
	}

	//STPop(&st);
	//STPop(&st);
	//STPop(&st);
	//STPop(&st);
	////STPop(&st);

	STDesTroy(&st);
}

int main()
{
	StackTest();

	return 0;
}